const sunMonnContainer = document.querySelector(".sun-moon-container");

document.querySelector(".theme-switch-btn").addEventListener("click", () => {
  document.body.classList.toggle("dark");

  const currentTotation = parseInt(
    getComputedStyle(sunMonnContainer).getPropertyValue("--rotation")
  );

  sunMonnContainer.style.setProperty("--rotation", currentTotation + 180);
});
